package com.java.thread;

public class PrimeRun implements Runnable {
	private boolean isRun = true;
	int i;
	@Override
	public void run() {
		while (isRun){
			System.out.println("runnable--"+i++);
			if(i==10){
				break;
			}
		}
	}
	public void stopRun(){
		isRun = false;
	}
}
